package com.woniu.car.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniu.order.bean.TOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author kk
 * @since 2022-08-12
 */
@TableName("t_receipt")
@ApiModel(value = "TReceipt对象", description = "")
public class TReceipt implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("回单id")
    @TableId(value = "receipt_id", type = IdType.AUTO)
    private Integer receiptId;

    @ApiModelProperty("回单编号")
    private String receiptNum;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("回单时间")
    private Date receiptDate;

    @ApiModelProperty("回单状态")
    private Integer receiptStatus;

    @ApiModelProperty("回单说明")
    private String receiptRemark;

    @ApiModelProperty("订单id")
    private Integer orderId;

    @ApiModelProperty("订单对象")
    @TableField(exist = false)
    private TOrder order;

    @ApiModelProperty("客户名称")
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public TOrder getOrder() {
        return order;
    }

    public void setOrder(TOrder order) {
        this.order = order;
    }

    public Integer getReceiptId() {
        return receiptId;
    }

    public void setReceiptId(Integer receiptId) {
        this.receiptId = receiptId;
    }
    public String getReceiptNum() {
        return receiptNum;
    }

    public void setReceiptNum(String receiptNum) {
        this.receiptNum = receiptNum;
    }
    public Date getReceiptDate() {
        return receiptDate;
    }

    public void setReceiptDate(Date receiptDate) {
        this.receiptDate = receiptDate;
    }
    public Integer getReceiptStatus() {
        return receiptStatus;
    }

    public void setReceiptStatus(Integer receiptStatus) {
        this.receiptStatus = receiptStatus;
    }
    public String getReceiptRemark() {
        return receiptRemark;
    }

    public void setReceiptRemark(String receiptRemark) {
        this.receiptRemark = receiptRemark;
    }
    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "Receipt{" +
                "receiptId=" + receiptId +
                ", receiptNum='" + receiptNum + '\'' +
                ", receiptDate=" + receiptDate +
                ", receiptStatus=" + receiptStatus +
                ", receiptRemark='" + receiptRemark + '\'' +
                ", orderId=" + orderId +
                ", order=" + order +
                ", username='" + username + '\'' +
                '}';
    }
}
